package cn.lu.service;

import cn.lu.pojo.Chapter;
import cn.lu.utils.Result;

import java.util.List;

public interface ChapterService {

    int addInsert(Chapter chapter);

    List<Chapter> selectByCurriculumId(Integer chapterId);

    int updateById(Chapter chapter);

    Result deleteByIdAndUserId(Integer chapterId, Integer userId);



    public Result updateByIdAndUserId(Chapter chapter,Integer userId);

     /*
        添加:必须有该课程,必须是老师
     */
    public Result addInTheUserId(Chapter chapter, Integer userId);


}